package Example9;

class Studnet{
    private String name;
    private int age;
    public Studnet(String name, int age){
        name = name;
        age = age;
    }
    public String read(){
        return "我是："+name+",年龄："+age;
    }
}
public class Example9 {
    public  static void main(String[] args){
        Studnet stu = new Studnet("张三",18);
        System.out.println(stu.read());
    }
}
